//
//  YZCommunityLocationModel.h
//  VET
//
//  Created by YZ on 2018/7/11.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>

typedef void (^YZMediaCompletionBlock)(BOOL success, NSError * _Nullable error,PHAsset *asset);

@interface YZMediaSourceManager : NSObject
/**
 保存照片到系统相册
 */
+ (void)saveImage:(UIImage *)image completionHandler:(YZMediaCompletionBlock)completion;

/**
 保存照片到特定相册
 */
//+ (void)saveImage:(UIImage *)image toAlbum:(NSString *)albumName completionHandler:(YZMediaCompletionBlock)completion;

/**
 保存视频到系统相册
 */
+ (void)saveFile:(NSURL *)fileUrl completionHandler:(YZMediaCompletionBlock)completion;

/**
 保存视频到特定相册
 */
//+ (void)saveFile:(NSURL *)fileUrl  toAlbum:(NSString *)albumName completionHandler:(YZMediaCompletionBlock)completion;

@end
